const mongoose = require("mongoose")
mongoose.connect('mongodb+srv://2782409032:2FvG4tegQ1w5KbKH@cluster0.s1xysrf.mongodb.net/Peach')
let con = mongoose.connection

con.on("open",()=>{
    console.log("连接成功");
})

con.on("error",(err)=>{
    console.log(err);
})

module.exports=mongoose